package com.lenovo.lcdm.dcm.service;

import com.lenovo.lcdm.dcm.dto.DummyConfigurableModelCatagoryDto;
import com.lenovo.lcdm.dcm.entity.DummyConfigurableModelCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lenovo.lcdm.dcm.vo.DummyConfigurableModelCategoryVo;

import java.util.List;
import java.util.Map;

/**
* @author sunby1
* @description 针对表【plm_dummy_configurable_model_category】的数据库操作Service
* @createDate 2023-12-27 15:29:12
*/
public interface DummyConfigurableModelCategoryService extends IService<DummyConfigurableModelCategory> {

    List<DummyConfigurableModelCategoryVo> getCategoryVos(Long dcmId);

    void delCategoriesByDcmId(Long id);

    void copyCategoriesByDcmId(Integer oldId, Integer newId);

    List<DummyConfigurableModelCatagoryDto> getCategoryDtos(Long id);

    void saveByDcmId(Long id, List<DummyConfigurableModelCatagoryDto> dummyConfigurableModelCatagoryDtos);

    void delCategoriesByCategoryIds(List<Long> needRemoveCategoryIds);

    /**
     * 查询dcm对应的category，并组装成map
     * @param dcmIds
     * @return
     */
    Map<Long, List<DummyConfigurableModelCategory>> getCategoryByDcmIds(List<Long> dcmIds);
}
